//先内置，再第三方，最后自定义
import Vue from 'vue'
//引入路由
import router from '@/router'
//引入store
import store from '@/store'
import App from './App.vue'
//引入全局组件
import TypeNav from '@/compoents/TypeNav'
//引入css文件
import './assets/css/reset.css'
import 'nprogress/nprogress.css'
import '@/mock'
import '@/filters'
import './assets/iconfont/iconfont.css'
//安装全局组件每个页面都可以用到
Vue.component('TypeNav', TypeNav)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  render: (h) => h(App),
  router,
  store,
  //安装全局事件总线，$bus就是当前应用的vm
  beforeCreate() {
    Vue.prototype.$bus = this
  },
})
